package org.catspaw.cherubim.persistence.spring.jdbc;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;

public final class ScalarRowMapper implements RowMapper {

	public static final ScalarRowMapper	INSTANCE	= new ScalarRowMapper();

	private ScalarRowMapper() {
	}

	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		return rs.getObject(1);
	}
}
